
package com.jf.cloud.multishop.dto;

import io.swagger.v3.oas.annotations.media.Schema;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author zz
 * @Date 2021/7/16 8:43
 */
public class ShopSigningInfoDTO {

    @Schema(description = "店铺id" )
    private Long shopId;

    @Schema(description = "签约起始时间" )
    @NotNull(message = "签约起始时间不能为空")
    private Date contractStartTime;

    @Schema(description = "签约终止时间" )
    @NotNull(message = "签约终止时间不能为空")
    private Date contractEndTime;

    @Schema(description = "店铺类型 1自营店 2普通店" )
    @Max(value = 2, message = "只能为1或2")
    @Min(value = 1, message = "只能为1或2")
    private Integer type;

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public Date getContractStartTime() {
        return contractStartTime;
    }

    public void setContractStartTime(Date contractStartTime) {
        this.contractStartTime = contractStartTime;
    }

    public Date getContractEndTime() {
        return contractEndTime;
    }

    public void setContractEndTime(Date contractEndTime) {
        this.contractEndTime = contractEndTime;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "ShopSigningInfoDTO{" +
                "shopId=" + shopId +
                ", contractStartTime=" + contractStartTime +
                ", contractEndTime=" + contractEndTime +
                ", shopType=" + type +
                '}';
    }
}
